package cc.co.bengkeljava.codex.designpattern.facade.ext1;

public class DvdPlayer {

	private Dvd dvd;

	public void turnOn() {
		System.out.println("menyalakan dvd player ..");
	}

	public void turnOff() {
		System.out.println("mematikan dvd player ..");
	}

	public void play() {
		System.out.println("memainkan dvd " + dvd.getTitle()
				+ " di dvd player ..");
	}

	public void stop() {
		System.out.println("berhenti memainkan dvd " + dvd.getTitle()
				+ " di dvd player ..");
	}

	public void reject() {
		System.out.println("mengeluarkan dvd " + dvd.getTitle()
				+ " dari dvd player ..");
		dvd = null;
	}

	public void insert(Dvd dvd) {
		this.dvd = dvd;
		System.out.println("memasukan dvd " + dvd.getTitle()
				+ " ke dvd player ..");
	}

}
